package com.szm.mvc.util;

/**
 * @author szm
 * @ClassName CoreConstant.java
 * @Description 常量值
 *
 */
public class Constant {

	/**
	 * DISPATCHER Results 默认跳转.
	 */
	public static String DISPATCHER = "dispatcher";
	/**
	 * REDIRECT Results 重定向.
	 */
	public static String REDIRECT = "redirect";
	/**
	 * CHAIN Results action链条.
	 */
	public static String CHAIN = "chain";
	/**
	 * REDIRECTACTION Results 重定向到Action.
	 */
	public static String REDIRECTACTION = "redirectaction";
	
	/**
	 * JOSON Results json异步传输. 
	 */
	public static String JOSON = "json";
	
	// xml 元素节点常量
	public static String STRUTS = "struts";
	/**
	 * PACKAGE 包.
	 */
	public static String PACKAGE = "package";
	/**
	 * GLOBAL_RESULTS 全局result.
	 */
	public static String GLOBAL_RESULTS = "global-results";
	/**
	 * INTERCEPTORS 拦截器S.
	 */
	public static String INTERCEPTORS = "interceptors";
	/**
	 * INTERCEPTOR 拦截器.
	 */
	public static String INTERCEPTOR = "interceptor";
	/**
	 * ACTION action.
	 */
	public static String ACTION = "action";
	/**
	 * RESULT 返回值.
	 */
	public static String RESULT = "result";
	
	/**
	 * PARAM result参数. 
	 */
	public static String PARAM = "param";
	
	/**
	 * CONTENTTYPE result参数 输出类型. 
	 */
	public static String CONTENTTYPE = "contentType";
	
	/**
	 * ROOT result参数 json root. 
	 */
	public static String ROOT = "root";
	
	//xml 元素属性常量
	/**
	 * NAMESPACE 命名空间.
	 */
	public static String NAMESPACE = "namespace";
	/**
	 * NAME 属性名.
	 */
	public static String NAME = "name";
	/**
	 * METHOD 方法配置.
	 */
	public static String METHOD = "method";
	/**
	 * CLAZZ 类.
	 */
	public static String CLAZZ = "class";
	
	/**
	 * TYPE 类型
	 */
	public static String TYPE = "type";
	
	//特殊符号
	/**
	 * WILDCARD 通配符.
	 */
	public static String WILDCARD = "*";
	/**
	 * LEFT_BRACKET 左口号 {.
	 */
	public static String LEFT_BRACKET = "{";
	/**
	 * RIGHT_BRACKET 右括号}.
	 */
	public static String RIGHT_BRACKET = "}";
	
	public static String DEFAULTNAMESPACE = "/";
	
	public static String SEMICOLO = ";";
	
	
	
}
